<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('新增结算单')"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-post-add">
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">客户姓名：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="customerName" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">联系方式：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="customerPhone" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">到店日期：</label>
            <div class="col-sm-8">
                <div class="input-group date">
                    <input name="actualArrivalTime" class="form-control" placeholder="yyyy-MM-dd HH:mm" type="text" required>
                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">车牌号码：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="licensePlate" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">汽车类型：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="carSeries" required>
            </div>
        </div>

		<div class="form-group">
			<label class="col-sm-3 control-label">服务分类：</label>
			<div class="col-sm-8">
				<select id="target" name="serviceType" class="form-control m-b">
					<option th:each="dict:${@dict.getType('si_service_catalog')}"  th:value="${dict.dictValue}" th:text="${dict.dictLabel}">页签</option>
				</select>
			</div>
		</div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">备注：</label>
            <div class="col-sm-8">
                <textarea class="form-control" style="height: 10em" type="text" name="info" required></textarea>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<th:block th:include="include :: datetimepicker" />
<script type="text/javascript">
    let prefix = ctx + "business/statement";
    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/add", $('#form-post-add').serialize());
        }
    }
    $("input[name='actualArrivalTime']").datetimepicker({
        format: "yyyy-mm-dd hh:ii",
        autoclose: true
    });
    $('#datetimepicker').datetimepicker({
        step:30,
        format:'Y-m-d H:i'
    });
</script>
</body>
</html>
